package com.lphl.pet.activity;

import com.lphl.pet.R;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;

public class DistanceDetectionActivity extends Activity implements OnClickListener{

	private ImageView iv_back;
	private ImageView iv_down_icon;
	private ImageView iv_right;
	private TextView tv_setting;
	private TextView tv_distance;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.activity_distance_detection);
		
		initView();
	}

	private void initView() {
		iv_back = (ImageView) findViewById(R.id.iv_back);
		iv_down_icon = (ImageView) findViewById(R.id.iv_down_icon);
		iv_right = (ImageView) findViewById(R.id.iv_right); // 保存
		tv_setting = (TextView) findViewById(R.id.tv_setting);
		tv_distance = (TextView) findViewById(R.id.tv_distance);
		
		iv_back.setOnClickListener(this);
		iv_down_icon.setOnClickListener(this);
		iv_right.setOnClickListener(this);
		tv_setting.setOnClickListener(this);
		tv_distance.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.iv_back:
			this.finish();
			break;
			
		case R.id.iv_down_icon:
			
			break;

		case R.id.iv_right:
			
			break;
			
		case R.id.tv_setting:
			
			break;
			
		case R.id.tv_distance:
			
			break;
			
		default:
			break;
		}
	}
	
}
